package com.yqg.education.common.result;

import lombok.Getter;


/**
 * 统一返回结果状态信息类
 */
@Getter
public enum ResultCodeEnum {
    /**请求成功*/
    SUCCESS(200,"success"),
    /**请求失败*/
    FAIL(201, "fail"),
    /**请求参数为空*/
    PARAM_EMPTY(203,"param is empty"),
    /**没有该账户*/
    NO_THIS_ACCOUNT(204,"no this account"),
    /**重复登陆*/
    REPEAT_LOGIN(205,"Repeat logins"),
    /**密码错误*/
    ERROR_PASSWORD(206,"error password"),
    /**尚未登录*/
    NO_LOGIN(207,"尚未登录！"),
    /**token超时，重新登录*/
    TOKEN_EXPIRED(208,"登录超时，请重新登录！"),
    /**输入药店id错误*/
    ERROR_PHARMACY_ID(209,"error pharmacyId"),
    /**溯源码错误*/
    ERROR_TRACE_CODE(210,"error traceCode"),
    /**旧密码错误*/
    OLD_PASSWORD_ERROR(211,"old password error"),
    /**excel格式错误*/
    FORMAT_ERROR(212,"format error"),
    /**药品已入库*/
    MEDICINE_HAS_INPUT(213,"medicine has been put into storage"),
    /**药品已出库*/
    MEDICINE_HAS_OUTPUT(214,"medicine has been out of storage"),
    /**没有查到此条数据*/
    DATA_IS_EMPTY(215,"The dumped data is empty"),
    /**药品已售*/
    MEDICINE_HAS_SOLD(216,"medicine has been sold"),
    /**药品已退库*/
    MEDICINE_HAS_WITHDRAWAL(217,"medicine has been withdrawn from storage"),
    /**请求已同意*/
    SECONDED_GOODS_HAS_AGREE(218,"该条请求已同意"),
    /**请求已拒绝*/
    SECONDED_GOODS_HAS_NOT_AGREE(219,"该条请求已拒绝"),

    ACCOUNT_IS_EXIST(223,"账号已存在");

    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
